home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group97a.txt
/
000134_icon-group-sender _Wed Jun 11 16:17:05 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
2KB
Received: from kingfisher.CS.Arizona.EDU by cheltenham.cs.arizona.edu; Wed, 11 Jun 1997 10:42:20 MST
Received: by kingfisher.CS.Arizona.EDU; (5.65v3.2/1.1.8.2/08Nov94-0446PM)
id AA08879; Wed, 11 Jun 1997 10:42:19 -0700
To: icon-group@cs.arizona.edu
Date: 11 Jun 1997 16:17:05 GMT
From: espie@felouque.ens.fr (Marc Espie)
Message-Id: <5nmj21$qj8$1@nef.ens.fr>
Organization: Ecole Normale Superieure, Paris
Sender: icon-group-request@cs.arizona.edu
References: <Stuart.Robinson-1006972230400001@asianstmg-221.anu.edu.au>
Subject: Re: searching with variables
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
Content-Length: 1368
In article <Stuart.Robinson-1006972230400001@asianstmg-221.anu.edu.au>,
Stuart Robinson <Stuart.Robinson@anu.edu.au> wrote:
[searching for Vl, V being a vowel]
>which are really just Vl (where V stands for a vowel). Could you simply
>define a character set for vowels (V := 'aeiou') and then refer to that
>character set in the find() function? If so, what would it look like? I
>tried something like the following and it didn't work.
>find( V || "l")
You just forgot ONE character:
find( !V || "l")
Note that this won't be overtly fast, though, especially since find
algorithm is rather dull.
Or you can use:
upto(V) = upto('l') - 1
(which is another waste.)
or (better):
upto('l', &subject, i <- upto(V), i+1) - 1
or even:
tab(upto('l')) & move(-1) & any(V)-1
which moves the matching position, though.
This kind of pattern matching is difficult to optimize, anyhow. It
all depends too much on the frequency of the characters in presence...
In general, icon pattern matching is not too great at stupid regular
expression emulation. They're much better at building intricate mechanisms
that wouldn't work with regular expression.
--
[nosave]<http://www.eleves.ens.fr:8080/home/espie/index.html>
microsoft network is EXPLICITLY forbidden to redistribute this message.
`Seiza no matataki kazoe, uranau koi no yuku e.'
Marc Espie (Marc.Espie@ens.fr)